# 基数和偶数
import turtle

t = turtle.Pen()

sides = int(turtle.numinput("数字", "数量", 4))

for m in range(5, 75):
    t.left(360 / sides + 5)
    t.penup()
    t.forward(m * 4)
    t.pendown()
    if(m % 2 == 0):
        for n in range(sides):
            t.circle(m / 3)
            t.right(360 / sides)
    else:
        for n in range(sides):
            t.forward(m)
            t.right(360 / sides)

turtle.mainloop()